package com.example.warehousems.event.event;

import com.example.warehousems.dao.model.Storage;
import org.springframework.context.ApplicationEvent;

public class UserRequestEvent extends ApplicationEvent {
    Storage storage;
    String title;
    String description;

    public UserRequestEvent(Storage storage, String title, String description) {
        super(storage);
        this.storage = storage;
        this.title = title;
        this.description = description;
    }

    public Storage getStorage() {
        return storage;
    }

    public void setStorage(Storage storage) {
        this.storage = storage;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    @Override
    public String toString() {
        return "UserRequestEvent{" +
                "storage=" + storage +
                ", title='" + title + '\'' +
                ", description='" + description + '\'' +
                '}';
    }
}
